package net.lqy.aipan.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.ArrayList;
import java.util.List;

/**
 * @title: FolderTreeNodeDTO
 * @Author lqy
 * @Date: 2025-06-06 11:00
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Schema(name = "FolderTreeNodeDTO", description = "文件夹树节点数据传输对象")
public class FolderTreeNodeDTO {

    /**
     * id
     */
    @Schema(description = "节点id", example = "1")
    @JsonProperty("id")
    private Long id;

    /**
     * 父级节点ID
     */
    @Schema(description = "父级节点ID", example = "0")
    @JsonProperty("parent_id")
    private Long parentId;

    /**
     * 文件夹名称
     */
    @Schema(description = "文件夹名称", example = "我的文档")
    @JsonProperty("file_name")
    private String fileName;

    /**
     * 子节点列表
     */
    @Schema(description = "子节点列表")
    @JsonProperty("children")
    private List<FolderTreeNodeDTO> children;
}
